from rest_framework import serializers

from apps.aiauth.serializers import UsersSerializer
from apps.resume.models import Resume, GuideRecord
from apps.setup.serializers import ExpertsSerializers


# 简历指导
class GuideRecordSerializers(serializers.ModelSerializer):
    user = UsersSerializer()

    class Meta:
        model = GuideRecord
        fields = "__all__"


class ResumeSerializers(serializers.ModelSerializer):
    experts = ExpertsSerializers()
    user_id = UsersSerializer()
    create_time = serializers.DateTimeField('%Y-%m-%d %H:%M')

    class Meta:
        model = Resume
        fields = "__all__"
